/*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is: CalemEAM MicroLocale Test Suite.
*
* The Initial Developer of the Original Code is CalemEAM Inc.
* Portions created by CalemEAM are Copyright (C) 2008 CalemEAM Inc.
* All Rights Reserved.
*
* Contributor(s):
*
* ***** END LICENSE BLOCK *****
*/

package test.calemeam.util.log;

/**
 * A simple logger helper.
 * @author cli
 */
public class Logger {
    public static void debug(String st) {
       Logger.print(st, "DEBUG");
    }
    
    public static void error(String st) {
       Logger.error(st, null);
    }
    
    public static void error(String st, Throwable t) {
       Logger.print(st+", message:"+(t!=null ? t.getMessage() : ""), "ERROR");
       if (t!=null) t.printStackTrace();
    }
    
    public static void print(String msg, String tag) {
       System.out.println(tag + " "+msg);
    }

}
